﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Statistics_MemberStatistics" Codebehind="MemberStatistics.aspx.cs" %>


<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../Controls/MemberStatisticsControl.ascx" TagName="MemberStatisticsControl"
    TagPrefix="uc1" %>
<%@ Register Src="../Controls/BUTTONDJLIST.ascx" TagName="BUTTONDJLIST" TagPrefix="uc4" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <script type="text/javascript" src="../Include/Js/SocanCode.js"></script>
        <script type="text/javascript" src="../Include/Js/PopupCalendar.js"></script>
        <script type="text/javascript" src="../Include/Js/OpenWindow.js"></script>
        
        <script type="text/javascript">
        
       function setVIPValue(p)
       {
       
           var tem=p.split(",");
           var temText ="";
         
           for(var i=0;i<tem.length;i++)
           {
                var gk=tem[i].split("|");
                if(gk[0]!="")
                {
                         temText = temText  +   gk[0]+ ",";
                }
           }
      
                document.getElementById("TextBox2").innerText  = temText.substr(0,temText.length-1);
          
       } 
          
         function MultiSearchVIP(path)
        {
	        var handle = window.showModalDialog(path+'DialogBoxHostFrame.aspx?url=MultiSelectSearchVIP.aspx', window,'status:off;center=yes;edge:raised;dialogHeight:500px;dialogWidth:720px;help:0;resizable:0;scrollbar=0');	 
	        if (handle != null && handle != '' && typeof handle != 'undefined') {
	            //__doPostBack("SearchProduct",handle);
	            if(handle=="0")
	            {
	            window.parent.frmright.location="../CustomerArchives/AddVIP.aspx?isorder=1";
	            }
	            else
	            {
	            setVIPValue(handle);
	            }
	        }
        }  
        
        
        function SelectCard(path)
        {
            var retValue=window.showModalDialog(path+'DialogBoxHostFrame.aspx?url=SelectCard.aspx', window,'status:off;center=yes;edge:raised;dialogHeight:525px;dialogWidth:530px;help:0;resizable:0;scrollbar=0');
            if(retValue!=""&&retValue!=undefined)
            {
              document.getElementById("hdtxtType").value=retValue.split("|")[0];  
              document.getElementById("txtType").value=retValue.split("|")[1];  
            }
            else
            {
                document.getElementById("txtType").value="";
                document.getElementById("txtType").value="";
            }
        }

		
        </script>
<style type="text/css">
.menu_bg3 { background-color:#f5f5f5; font-weight:bold; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cccccc 1px solid;border-top:#cccccc 1px solid;clear:left;}
</style>
</head>
<body>
    <form id="form1" runat="server">
    
    <div align="Justify">
        
        
    <h2>
        会员销售排行榜</h2> <asp:DataGrid ID="DataGrid" runat="server" OnItemDataBound="DataGrid_ItemDataBound"  > </asp:DataGrid>

        <div class="menu_bg">
            &nbsp;会员帐号：<asp:TextBox ID="TextBox2" runat="server" Width="100px" ></asp:TextBox>&nbsp;
            <asp:HiddenField ID="hdtxtType" runat="server" />
            VIP卡类别：<asp:TextBox ID="txtType" runat="server"></asp:TextBox>
            订单来源：<asp:DropDownList ID="drpOrderFrom" runat="server"></asp:DropDownList>
            制单日期：<asp:TextBox ID="txtStart" runat="server" onclick="getDateString(this,oCalendarChs)"
                Width="100px"></asp:TextBox>至<asp:TextBox ID="txtEnd" runat="server" onclick="getDateString(this,oCalendarChs)"
                    Width="100px"></asp:TextBox>&nbsp; 财务审核日期：<asp:TextBox ID="txtDate1" runat="server"
                        onclick="getDateString(this,oCalendarChs)" Width="100px"></asp:TextBox>至<asp:TextBox
                            ID="txtDate2" runat="server" onclick="getDateString(this,oCalendarChs)" Width="100px"></asp:TextBox>&nbsp;
            发货日期：<asp:TextBox ID="txtDate3" runat="server" onclick="getDateString(this,oCalendarChs)"
                Width="100px"></asp:TextBox>至<asp:TextBox ID="txtDate4" runat="server" onclick="getDateString(this,oCalendarChs)"
                    Width="100px"></asp:TextBox>
            
            <asp:Button ID="Button1" runat="server" Text="查询" CssClass="input_button" OnClick="Button1_Click" />
            &nbsp;
            <asp:Button ID="Button2" runat="server" Text="导出" CssClass="input_button" OnClick="Export_Click" />
        <br />

                          
            </div>
    <div class="menu_bg3">会员销售排行榜</div>
        <div class="juli"><uc1:MemberStatisticsControl ID="MemberStatisticsControl1" runat="server" /></div>
        <div class="juli"><webdiyer:aspnetpager id="AspNetPager1" 
        runat="server"
        PageSize="25" 
       NumericButtonCount="8" 
       ShowCustomInfoSection="left" 
       PagingButtonSpacing="0"
       ShowInputBox="always" 
       HorizontalAlign="Center" 
       SubmitButtonText="转到" 
       NumericButtonTextFormatString="[{0}]" OnPageChanged="AspNetPager1_PageChanged" FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页" SubmitButtonClass="input_button"></webdiyer:aspnetpager>
                <br />
                &nbsp;</div>
        
    </div>
    
    </form>
</body>
</html>
